package com.dragon.refect.error;

/**
 * @author dragon
 * @since 2019/12/12
 */
public class StringInternTest4 {

    public static void main(String[] args) {
        String str1 = new StringBuilder("asfdjasdf").append("zhong").toString();
        System.out.println(str1.intern() == str1);

        String str2 = new StringBuilder("ja").append("va").toString();
        System.out.println(str2.intern() == str2);
    }
}
